#!/bin/bash

addr=`bitcoin-cli getnewaddress`
echo "address => $addr"

txid=`bitcoin-cli sendtoaddress $addr 3.33`
echo "txid => $txid"

blks=`bitcoin-cli generate 6`
echo "mined 6 blocks"

bitcoin-cli getrawtransaction $txid true